//
//  JiangpinXiangqingViewController.m
//  
//
//  Created by MK-MAC-001 on 15/7/21.
//
//

#import "JiangpinXiangqingViewController.h"
#import "AppDelegate.h"
@interface JiangpinXiangqingViewController ()<UITableViewDataSource,UITableViewDelegate>

@end

@implementation JiangpinXiangqingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.view.backgroundColor = [UIColor whiteColor];
    UITableView *table = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 375, 667) style:UITableViewStyleGrouped];
    table.delegate = self;
    table.dataSource = self;
    [self.view addSubview:table];
    UIView *buttonview = [[UIView alloc] initWithFrame:CGRectMake(0, 610, 375, 60)];
    buttonview.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:buttonview];
    UIButton *canyu = [UIButton buttonWithType:UIButtonTypeCustom];
    [canyu setTitle:@"立即参与" forState:UIControlStateNormal];
    [canyu setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    canyu.titleLabel.textColor = [UIColor whiteColor];
    canyu.backgroundColor = [UIColor redColor];
    canyu.frame = CGRectMake(20, 10, 130, 40);
    canyu.layer.cornerRadius = 10;

    
    [buttonview addSubview:canyu];
    UIButton *jiaru = [UIButton buttonWithType:UIButtonTypeCustom];
    [jiaru setTitle:@"加入清单" forState:UIControlStateNormal];
    [jiaru setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    jiaru.titleLabel.textColor = [UIColor redColor];
    jiaru.backgroundColor = [UIColor whiteColor];
    jiaru.frame = CGRectMake(170, 10, 130, 40);
    jiaru.layer.cornerRadius = 10;
    jiaru.layer.borderWidth = 1;
    jiaru.layer.borderColor = [UIColor redColor].CGColor;
    [buttonview addSubview:jiaru];
    UIImage *image = [UIImage imageNamed:@"iconfont-gouwuche (1)"];
    UIImageView *imagev = [[UIImageView alloc] initWithFrame:CGRectMake(320, 15, 32, 32)];
    imagev.image = image;
    [buttonview addSubview:imagev];
    
    
    
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *indent = @"cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:indent];
    if (cell == nil) {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:indent];
        cell.textLabel.text = @"ddd";
    }
    return cell;
}
//- (void)viewWillAppear:(BOOL)animated {
//    [ setTabBarHidden:YES];
//}
//- (void)viewWillDisappear:(BOOL)animated {
//    [UITabBarController setTabBarHidden:NO];
//}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 50;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
